package com.java;

import com.java.model.ArticleInfo;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
@Component
public class Articles {
    @Bean(value = {"bbb","ccc"})
    public ArticleInfo getArt() {
        //伪代码
        ArticleInfo articleInfo = new ArticleInfo();
        articleInfo.setAid(1);
        articleInfo.setTitle("今天周几？");
        articleInfo.setContent("今天周一！！！");
        articleInfo.setCreatetime(LocalDateTime.now());
        return articleInfo;
    }
}
